import axios from "axios";
const UserApi={
    postUser: (user) => {
        return axios.post('http://localhost:88/user/saveUser',user)
            .then(response => response.data)
            .catch(error => {
                console.log(error);
                return null;
            });
    },
    LoginUser: (user) => {
        return axios.post('http://localhost:88/user/login',user)
            .then(response => response.data)
            .catch(error => {
                console.log(error);
                return null;
            });
    },
}
export default UserApi
